<#--<#include "../../layout/base.ftl">-->
<#--<#macro header>-->
<#--<script type="text/javascript" src="${base}/scripts/cwgl/fpdr_insert.js"></script>-->
<#--</#macro>-->
<#--<#macro body>-->
<div style="height:100%;width: 100%;">
    <div id="fphb_content_toolbar">
        <div class="textcon">
            <form id="form_fphb_insert" method="post" action="${base}/cwgl/fphb/generate_voucher" >
                <input name="jhbjsdId" type="hidden" value="${hbjsdId!}">
                <table style="width:100%" class="tb tab-t">
                    <col width="10%"/>
                    <col/>
                    <col width="10%"/>
                    <col/>
                    <col width="10%"/>
                    <col/>
                    <tr>
                        <th>公司：</th>
                        <td>
                            <input type="text" class="input-text" readonly="readonly" value=" ${(gsmc)!}"/>
                        </td>
                        <th>字号：</th>
                        <td>
                            <input type="text" class="input-text" readonly="readonly" value="${voucherMaster.vchrtypecode!''}"/>
                        </td>
                        <th>制单时间：</th>
                        <td>
                            <input id="fphb_systemDate" name="fphbSystemDate" type="text" class="easyui-datebox input-text"  value=""/>
                        </td>
                    </tr>
                    <tr>
                        <th>制单人：</th>
                        <td>
                            <input type="text" class="input-text" readonly="readonly" value="${voucherMaster.createuser!''}"/>
                        </td>
                        <th>附单据数：</th>
                        <td>
                            <input id="fphb_attachment" name="attachment" type="text" class=" easyui-numberbox input-text"  />
                        </td>
                        <th>备注：</th>
                        <td>
                            <input id="fphb_bz" name="bz" type="text" class="input-text"  />
                        </td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
    <table class="easyui-datagrid"
           data-options="fit:true,singleSelect:true,fitColumns:true<#--,url:'${base}/cwgl/fpdr/fpdr_insert_flList?jsdId=${jsdId!}'-->">
        <thead>
        <tr>
            <th data-options="field:'digest',width:70,align: 'center'">摘要</th>
            <th data-options="field:'subjectname',width:120,align: 'center'">科目</th>
            <th data-options="field:'debit',width:30,formatter:formatJeForHtml2,align: 'right'">借方</th>
            <th data-options="field:'credit',width:30,formatter:formatJeForHtml2,align: 'right'">贷方</th>
        </tr>
        </thead>
        <tbody>
        <#if voucherItem??>
            <#list voucherItem as item>
            <tr>
                <td>${(item.digest)!}</td>
                <td>${(item.subjectname)!}</td>
                <td>${(item.debit)!}</td>
                <td>${(item.credit)!}</td>
            </tr>
            </#list>
        </#if>
        </tbody>
    </table>
</div>
<#--</#macro>-->